﻿using System.ComponentModel;
using System.Runtime.CompilerServices;

namespace Xc.DataAccess.Core
{
    /// <summary>
    ///视图模型
    /// </summary>
    public class ViewModelBase : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
        /// <summary>
        /// 引发属性更改
        /// </summary>
        /// <param name="name"></param>
        protected void RaisedPropertyChanged([CallerMemberName]string name = null)
        {
            PropertyChanged?.Invoke(this,new PropertyChangedEventArgs(name));
        }
    }
}
